home *** CD-ROM | disk | FTP | other *** search
- /** Class DataOption
- Description : Implement the data option object
- */
- function NOF_DataOption(_id,_name,_label) {
- this.__proto__ = NOF_DataOption.prototype;
-
- this.id = _id;
- this.name = _name;
- this.label = _label;
- }
-
- function NOF_DataOption_ProtoBuilder() {
- var member = NOF_DataOption.prototype;
- member.id = -1;
- member.name = '';
- member.label = '';
- member.sorted = false;
- member.values = null;
- member.tableId = -1;
- member.position = -1;
- member.isNew = true;
- member.isDirty = true;
-
- var method = NOF_DataOption.prototype;
-
- method.getValues = function getValues () { return this.values; }
- method.setValues = function setValues (_values) { this.values = _values; this.isDirty = true; }
-
- method.getId = function getId () { return this.id; }
- method.setId = function setId (_id) { this.id = _id; this.isDirty = true; }
-
- method.getName = function getName () { return this.name; }
- method.setName = function setName (_name) { this.name = _name; this.isDirty = true; }
-
- method.getLabel = function getLabel () { return this.label; }
- method.setLabel = function setLabel (_label) { this.label = _label; this.isDirty = true; }
-
- method.getSorted = function getSorted () { return this.sorted; }
- method.setSorted = function setSorted (_sorted){ this.sorted = _sorted; this.isDirty = true; }
-
- method.getPosition = function getPosition () { return this.position; }
- method.setPosition = function setPosition (_position) { this.position = _position; this.isDirty = true; }
-
- method.getTableId = function getGetTableId () { return this.tableId; }
- method.setTableId = function setTableId (_tableId) { this.tableId = _tableId; this.isDirty = true; }
-
- method.equals = function equals (obj) {
- if (this.name == obj.name)
- return true;
- return false;
- }
- }
-
- NOF_DataOption_ProtoBuilder();
- NOF.__proto__.DataOption = NOF_DataOption;
-